/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MenuPrincipal.java
 *
 * Created on 05-abr-2013, 15:17:11
 */
package GUI_HistorialClinico;

/**
 *
 * @author JOHANNA
 */
public class MenuPrincipal extends javax.swing.JFrame {

    /** Creates new form Menuprincipal */
    public MenuPrincipal() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        FichaCjMenu = new javax.swing.JMenu();
        PacientesjMenu = new javax.swing.JMenu();
        PersonalMedjMenu = new javax.swing.JMenu();
        MenuUsuarios = new javax.swing.JMenu();
        ReporteMenu = new javax.swing.JMenu();
        SalirMenu = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("SiHisCliOdon");

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel1.setText("FACULTAD DE ODONTOLOGIA");

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel2.setText("DPTO. DE DIAGNOSTICO");

        jMenuBar1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, null, java.awt.Color.lightGray, java.awt.Color.white, null));

        FichaCjMenu.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        FichaCjMenu.setText("Ficha Clínica");
        FichaCjMenu.setName("MenuHC"); // NOI18N
        FichaCjMenu.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                FichaCjMenuMouseClicked(evt);
            }
        });
        jMenuBar1.add(FichaCjMenu);

        PacientesjMenu.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        PacientesjMenu.setText("Pacientes");
        PacientesjMenu.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                PacientesjMenuMouseClicked(evt);
            }
        });
        jMenuBar1.add(PacientesjMenu);

        PersonalMedjMenu.setText("Personal Médico");
        jMenuBar1.add(PersonalMedjMenu);

        MenuUsuarios.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        MenuUsuarios.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/edit.png"))); // NOI18N
        MenuUsuarios.setText("Usuarios");
        MenuUsuarios.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                MenuUsuariosMouseClicked(evt);
            }
        });
        jMenuBar1.add(MenuUsuarios);

        ReporteMenu.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/edit.png"))); // NOI18N
        ReporteMenu.setText("Reportes");
        jMenuBar1.add(ReporteMenu);

        SalirMenu.setText("Salir");
        SalirMenu.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SalirMenuMouseClicked(evt);
            }
        });
        jMenuBar1.add(SalirMenu);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(167, 167, 167)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(182, 182, 182)
                        .addComponent(jLabel2)))
                .addContainerGap(291, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(281, Short.MAX_VALUE))
        );

        getAccessibleContext().setAccessibleName("Sistema Historial Clinico Odontologico");

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void SalirMenuMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SalirMenuMouseClicked
System.exit(0);
 // TODO add your handling code here:
}//GEN-LAST:event_SalirMenuMouseClicked

    private void MenuUsuariosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MenuUsuariosMouseClicked
        // TODO add your handling code here:
        FormUsuarios form=new FormUsuarios();
        form.show();
    }//GEN-LAST:event_MenuUsuariosMouseClicked

    private void PacientesjMenuMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_PacientesjMenuMouseClicked
        // TODO add your handling code here:
        FormPacientes form=new FormPacientes();
        form.show();
    }//GEN-LAST:event_PacientesjMenuMouseClicked

    private void FichaCjMenuMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_FichaCjMenuMouseClicked
        // TODO add your handling code here:
        FormHistorial form=new FormHistorial();
        form.show();
    }//GEN-LAST:event_FichaCjMenuMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MenuPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MenuPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MenuPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MenuPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new MenuPrincipal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu FichaCjMenu;
    private javax.swing.JMenu MenuUsuarios;
    private javax.swing.JMenu PacientesjMenu;
    private javax.swing.JMenu PersonalMedjMenu;
    private javax.swing.JMenu ReporteMenu;
    private javax.swing.JMenu SalirMenu;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JMenuBar jMenuBar1;
    // End of variables declaration//GEN-END:variables
}
